package org.abm.jwebsite.exception;

import org.abm.jwebsite.utilities.Constants;
import org.abm.jwebsite.utilities.Utilities;

/**
 *
 * @author Saptarshi Debnath (saptarshi.devnath@gmail.com)
 */
public class ContentJSPMissingWithPageIDNameException extends JWebsiteException implements Constants {

    /**
     *
     */
    private static final long serialVersionUID = -8688403738153818943L;

    public ContentJSPMissingWithPageIDNameException(Exception ex) {
        super(ex);
    }

    public ContentJSPMissingWithPageIDNameException(String pageID) {
        this(new RuntimeException("Content JSP for the page id : " + pageID + " not found ath the path : "
                + Utilities.INSTANCE.getProperty(CNST_KEY_CONTENT_DIRECTORY)));
    }
}
